package com.example.yiwei.crm.view.frament.coordinationFrament;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.yiwei.crm.R;
import com.example.yiwei.crm.data.GetDock;

/**
 * Created by DHN on 2017/4/27.
 */

public class CoorOtherFragment  extends Fragment {
    private TextView txt_visit_number,txt_referral_amount,txt_clinical_amount,
            txt_operation_amount,txt_giving_count,txt_manager,txt_create_time,txt_updater,txt_update_time,
            txt_additional,txt_manager_deperment,txt_cname;
    com.example.yiwei.crm.entity.dockingEntity dockingEntity;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View rootView=inflater.inflate(R.layout.fragment_dock_other_coor,container,false);
        txt_visit_number= (TextView) rootView.findViewById(R.id.frm_dock_detailed_other_txt_visit_number);
        txt_referral_amount= (TextView) rootView.findViewById(R.id.frm_dock_detailed_other_txt_referral_amount);
        txt_clinical_amount= (TextView) rootView.findViewById(R.id.frm_dock_detailed_other_txt_clinical_amount);
        txt_operation_amount= (TextView) rootView.findViewById(R.id.frm_dock_detailed_other_txt_operation_amount);
        txt_giving_count= (TextView) rootView.findViewById(R.id.frm_dock_detailed_other_txt_giving_count);
        txt_manager= (TextView) rootView.findViewById(R.id.frm_dock_detailed_other_txt_manager);
        txt_manager_deperment = (TextView) rootView.findViewById(R.id.frm_dock_detailed_other_txt_manager_dep);
        txt_create_time= (TextView) rootView.findViewById(R.id.frm_dock_detailed_other_txt_create_time);
        txt_updater= (TextView) rootView.findViewById(R.id.frm_dock_detailed_other_txt_updater);
        txt_update_time= (TextView) rootView.findViewById(R.id.frm_dock_detailed_other_txt_update_time);
        txt_additional= (TextView) rootView.findViewById(R.id.frm_dock_detailed_other_txt_additional);
        txt_cname = (TextView) rootView.findViewById(R.id.frm_dock_detailed_other_txt_cna);
        dockingEntity= GetDock.get();
        txt_manager_deperment.setText(dockingEntity.getManager_department());
        txt_visit_number.setText(dockingEntity.getVisit_number()+"");
        txt_referral_amount.setText(dockingEntity.getReferral_amount()+"");
        txt_clinical_amount.setText(dockingEntity.getClinical_amount()+"");
        txt_operation_amount.setText(dockingEntity.getOperation_amount()+"");
        txt_giving_count.setText(dockingEntity.getGiving_count()+"");
        txt_manager.setText(dockingEntity.getManager());
        txt_create_time.setText(dockingEntity.getCreate_time());
        txt_updater.setText(dockingEntity.getCurrent_update_name());
        txt_update_time.setText(dockingEntity.getUpdate_time());
        txt_additional.setText(dockingEntity.getAddtional_remark());
        txt_cname.setText(dockingEntity.getCurrent_create_name());
        return rootView;
    }
}
